package com.zide.framework.oss;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 石添
 * @date 2024/3/13 16:00
 *
 */
@Component
@Data
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliyunOSSConfig {

    private String endpoint;
    private String keyid;
    private String keySecret;
    private String bucketName;
    private String urlPrefix;

    // 品牌logo
    public final static String BRAND_LOGO = "brand/logo/";
    // 商品图片
    public final static String PRODUCT = "product/";
    // 用户头像
    public final static String AVATAR = "avatar/";
    // banner图
    public final static String BANNER = "banner/";

}
